package com.alter.java.ai.langchain4j;

import dev.langchain4j.data.document.Document;
import dev.langchain4j.data.document.loader.FileSystemDocumentLoader;
import dev.langchain4j.data.document.parser.apache.pdfbox.ApachePdfBoxDocumentParser;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class testParsePDF {

    @Test
    public void testParsePDF(){
        Document document = FileSystemDocumentLoader.loadDocument( "F:/硅谷小智/资料/knowledge/医院信息.pdf",new ApachePdfBoxDocumentParser());
        System.out.println(document);
    }

}
